import Vue from "vue";
import VueRouter from "vue-router";

// 一级路由
// import Particulars from '@/views/Particulars'
import HomePage from '@/views/Home_Page'

// 二级路由
import Home from '@/views/Home'
import Message from '@/views/Message'
import MyHoass from '@/views/MyHoass'
import Search from '@/views/Search'

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path:'/',
      redirect: 'homepage'
    },
    {
      path:'/homepage',
      component: HomePage,
      children:[
        {
          path:'home',
          component: Home
        },
        {
          path:'message',
          component: Message
        },
        {
          path:'myHoass',
          component: MyHoass
        },
        {
          path:'search',
          component: Search
        },
      ]
    },
  ]
})

export default router;